package cn.xutongxue.book_sales.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * @author XuTongXue
 * @since 2021-12-02
 */
@TableName("address")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收货地址ID
     */
    @TableId(value = "address_id", type = IdType.AUTO)
    private Long addressId;

    /**
     * 收货人
     */
    @TableField("address_user_name")
    private String addressUserName;

    /**
     * 收货人性别(0:男,1:女)
     */
    @TableField("address_user_sex")
    private Integer addressUserSex;

    /**
     * 收货人联系电话
     */
    @TableField("address_user_phone")
    private String addressUserPhone;

    /**
     * 详细收货地址
     */
    @TableField("address_detailed")
    private String addressDetailed;

    /**
     * 用户外键
     */
    @TableField("address_user_id")
    private String addressUserId;

    public Long getAddressId() {
        return addressId;
    }

    public void setAddressId(Long addressId) {
        this.addressId = addressId;
    }
    public String getAddressUserName() {
        return addressUserName;
    }

    public void setAddressUserName(String addressUserName) {
        this.addressUserName = addressUserName;
    }
    public Integer getAddressUserSex() {
        return addressUserSex;
    }

    public void setAddressUserSex(Integer addressUserSex) {
        this.addressUserSex = addressUserSex;
    }
    public String getAddressUserPhone() {
        return addressUserPhone;
    }

    public void setAddressUserPhone(String addressUserPhone) {
        this.addressUserPhone = addressUserPhone;
    }
    public String getAddressDetailed() {
        return addressDetailed;
    }

    public void setAddressDetailed(String addressDetailed) {
        this.addressDetailed = addressDetailed;
    }
    public String getAddressUserId() {
        return addressUserId;
    }

    public void setAddressUserId(String addressUserId) {
        this.addressUserId = addressUserId;
    }

    @Override
    public String toString() {
        return "Address{" +
            "addressId=" + addressId +
            ", addressUserName=" + addressUserName +
            ", addressUserSex=" + addressUserSex +
            ", addressUserPhone=" + addressUserPhone +
            ", addressDetailed=" + addressDetailed +
            ", addressUserId=" + addressUserId +
        "}";
    }
}
